<?php
include_once("../plogger/Logger.php");
include_once("HtmlFormatter.php");

$logger = new Logger(get_class($this), "log.html");
$logger->setOutputFormatter(new HtmlFormatter());

$logger->debug("Test Debug");
$logger->warning("Test Warning");
$logger->error("Test Error");

tm();

function tm()
{
	$a = new pepe();	
}

class pepe
{
	function __construct()
	{
		$p = new jojo();
		$logger = new Logger(get_class($this), "log.html");
		$logger->setOutputFormatter(new HtmlFormatter());
		
		$logger->debug("testing....en pepe");
	}
	
}

class jojo
{
	function __construct()
	{
		$logger = new Logger(get_class($this), "log.html");
		$logger->setOutputFormatter(new HtmlFormatter());
		
		$logger->debug("testing....");
	}
	
}


?>